package com.oig.base.api.fallback;

import com.oig.base.api.ParamService;
import com.oig.sys.base.vo.ParamVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ParamServiceFallBackImpl implements ParamService {
    @Setter
    private Throwable cause;

    @Override
    public ParamVo getParam(String code) {
        log.error("feign getParam error ", cause);
        return null;
    }


    @Override
    public Integer getNextId(String code) {
        log.error("feign getNextId error ", cause);
        return null;
    }

    @Override
    public void resetAllIdIndex() {
        log.error("feign resetAllIdIndex error ", cause);
    }
}
